.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}
:root{
    --gray : #f6f7f8;
    --dark-gray : #ccc;
    --color-black : #444;
    --color-gray : #666;
    --color-green : #07c160;
    --color-white : #fff;
    --color-blue : #576b95;
}

.file-main *::-webkit-scrollbar {
    /*滚动条整体样式*/
    width : 4px;  /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}
.file-main *::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius   : 4px;
    background-color: skyblue;
    background-image: -webkit-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent
    );
}
.file-main *::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow   : inset 0 0 5px rgba(0, 0, 0, 0.2);
    background   : #ededed;
    border-radius: 10px;
}
.file-main .d-flex {
    display: flex;
}
.file-main .w-100
{
    width: 100%;
}
.file-main .h-100
{
    height: 100%;
}
.file-main .m-top-15{
    margin-top: 15px;
}
.file-main .flex-justify-center {
    justify-content: center;
}
.file-main .flex-align-center {
    align-items: center;
}
.file-main .flex-justify-between {
    justify-content: space-between;
}
.file-main .flex-flow-column{
    flex-flow: column
}
.file-main ul, .file-main li, .file-main ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.file-main .hidden {
    display: none;
}

.file-main .btn-green {
    padding: 5px 15px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-white);
    background: #07c160;
    border: 1px solid #07c160;
}
.file-main .btn-green:hover {
    border: 1px solid #06ad56;
    background: #06ad56;
}

.file-main .btn-gray {
    padding: 5px 15px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    background: var(--gray);
    border: 1px solid #e3e4e5;
    color: var(--color-gray);
}

.file-main .btn-gray:hover {
    border: 1px solid #efefef;
    background: #efefef;
}

.file-main.file-remark {
    display: none;
    z-index: 5000;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
    overflow: auto;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.file-main.file-remark *{
    box-sizing: border-box;
}
.file-main.file-remark:after {
    content: " ";
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%;
    overflow: hidden;
}
.file-main .file-box {
    position: relative;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    width: 980px;
    height: 685px;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.file-main .file-head{
    height: 46px;
    padding: 20px 20px 0px 20px;
}

.file-main .file-title
{
    font-weight: 400;
    font-size: 18px;
}
.file-main .icon-close {
    height: 24px;
    width: 24px;
    fill: #999;
    vertical-align: middle;
    cursor: pointer;
}

.file-main .file-container{
    flex: 1;
}
.file-main .group-list{
    border-right: 1px solid #efefef;
    width: 190px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    display: flex;
    flex-flow: column;
    height: 555px;
    padding-bottom: 20px;
}
.file-main .group-list ul{
    flex: 1;
    overflow: auto;
}

.file-main .group-list ul, .file-main .group-list ul li{
    width: 100%;
}
.file-main .group-list ul li{
    height: 40px;
}
.file-main .group-list>ul a {
    display: inline-block;
    line-height: 40px;
    padding-left: 25px;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--color-gray);
    cursor: pointer;
}
.file-main .group-list>ul li.selected a, .file-main .group-list>ul a:hover{
    background: var(--gray);
}
.file-main .add-group {
    padding-top: 10px;
    position: relative;
    font-size: 12px;
    color: var(--color-blue);
    text-decoration: none;
    cursor: pointer;
    padding-left: 25px;
}
.file-main .add-group-form {
    position: absolute;
    left: 40px;
    bottom:15px;
    width: 200px;
    border: 1px solid #efefef;
    border-radius: 4px;
    padding: 15px;
    display: none;
    background: #fff;
}
.file-main .add-group-form input {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid var(--dark-gray);
    color: var(--color-gray);
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    height: 30px;
}
.file-main .add-group-form button {
    width: 100%;
}
.file-main .add-group:hover .add-group-form {
    display: block;
    z-index: 1000;
}

.file-main .file-list{
    height: calc(100% - 100px);
    padding-left: 20px;
    position: relative;
    margin: 8px 0;
    overflow: auto;
    text-align: center;
    color: var(--color-gray);
}
.file-main .file-list.loading:before{
    content: '';
    background: url("") no-repeat center;
    position: absolute;
    top: 4px;
    left: 3px;
    width: 90%;
    height: calc(100% - 100px);
}
.file-main .file-list .file-item {
    cursor: pointer;
    position: relative;
    float: left;
    width: 110px;
    margin: 0 15px 15px 0;
}
.file-main .file-list .file-item:nth-child(6n) {
    margin-right: 0;
}
.file-main .file-list .file-item .file-img{
    position: relative;
    display: block;
    width: 110px;
    height: 110px;
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 2px;
    overflow: hidden;
}
.file-main .file-list .file-item.selected .file-img, .file-main .file-list .file-item .file-img:hover
{
    -webkit-box-shadow: 0 0 0 2px #07c160 inset;
}
.file-main .file-list .file-item.selected .file-img:before
{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(7, 193, 96, 0.2);
    opacity: .1;
}

.file-main .file-list .file-item .file-name{
    height: 20px;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.file-main .file-list .file-item .file-check{
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 1px;
    background-color: rgba(0,0,0,.2);
}

.file-main .file-list .file-item.selected .file-check {
    background-color: #07c160;
}
.file-main .file-list .file-item.selected .file-check:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 3px;
    width: 11px;
    height: 6px;
    border-left: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
    transform: rotate(-45deg);
}

.file-main .file-button{
    border-top: 4px solid #efefef;
    height: 60px;
}

.file-main .upload-btn-box {
    text-align: right;
    padding-right: 20px;
    height: 43px;
}
.file-main .file-cancel{
    margin-left: 10px;
}

/*分页开始*/
.file-main .page-box{
    display: flex;
    justify-content: end;
    padding-right: 20px;
}
.file-main .page {
    height: 40px;
    display: flex;
}
.file-main .page li{
    margin: 2px 4px;
    color: var(--color-gray);
    height: 24px;
    line-height: 24px;
}
.file-main .page-prev, .file-main .page-next {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 2px;
    border: none;
    min-width: auto;
    padding: 0;
    background: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gray);
    cursor: pointer;
    font-size: 12px;
}
.file-main .current-page {
    color: var(--color-green);
}
.file-main .page-input {
    width: 42px;
    text-align: left;
    padding: 0 6px;
    height: 25px;
    vertical-align: middle;
    background: var(--gray);
    border: 1px solid var(--gray);
    outline: unset;
    color: var(--color-gray);
}
.file-main .go-page {
    background: var(--gray);
    font-size: 12px;
    padding: 5px 10px;
    color: var(--color-blue);
    cursor: pointer;
    border-radius: 2px;
}
.file-main .page-prev:hover, .file-main page-next:hover, .file-main .go-page:hover
{
    background: var(--dark-gray);
}
